import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import(/* webpackChunkName: 'home' */'@/views/Home.vue'),
  },
  {
    path: '/:schemaCode/:mode/:dataId?',
    name: 'Formily',
    props: true,
    component: () => import(/* webpackChunkName: 'formily' */'@/views/Formily.vue'),
  },
]

const router = new VueRouter({
  routes
})

export default router
